
/**
 * ======================================
 * 系统管理角色列表
 * author: SKY-D
 * file: user-class.js
 * date: 2022/6/15 22:44
 * ======================================
 */
import baseClass from '@/list/baseClass'
import _ from 'lodash'
export default class roleClass extends baseClass {
  constructor(prop) {
    super(prop)
    console.log('系统管理角色列表', prop)
    this.id = _.get(prop, 'id', '')
    this.index = _.get(prop, 'id', '')
    this.number = _.get(prop, 'number', '')
    this.name = _.get(prop, 'name', '')
    this.remark = _.get(prop, 'remark', '')
    this.createDate = _.get(prop, 'created_time', '')
    this.level = _.get(prop, 'level', 0)
  }
  list() {
    return [
      {
        name: '序号',
        key: 'index',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '角色编号',
        key: 'number',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '角色名称',
        key: 'name',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '角色描述',
        key: 'remark',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '创建时间',
        key: 'createDate',
        fixed: '',
        edit: false,
        show: true,
        value: ''
      },
      {
        name: '操作',
        key: 'action',
        fixed: 'right',
        edit: false,
        show: true,
        value: 290
      }
    ]
  }
}
